import {AppCitysBlock as GP8ContentBlock, AppCitysItem as GP8ContentItem} from "./block-item/index";

import directives from "./directives"

// const util = {
//     util
// }

const install = (Vue, options) => {
    // 提供组件
    Vue.component('gp8-content-block', GP8ContentBlock);
    Vue.component('gp8-content-item', GP8ContentItem);

    // 提供方法
    // Vue.protortype.$util = util

    // 注册大量的指令
    for (let key in directives) {
        directives[key](Vue);
    }
}

// 按需加载
export { GP8ContentBlock, GP8ContentItem }

export default {
    install
}
